import request from "@/utils/request";

export const getPicCodeApi = () => {
  return request.get("/captcha/image");
};
export const getMsgCodeApi = (captchaCode, captchaKey, mobile) => {
  return request.get("/captcha/sendSmsCaptcha", {
    captchaCode,
    captchaKey,
    mobile,
  });
};
export const loginApi = (mobile, smsCode) => {
  return request.post("/passport/login", {
    form: {
      isParty: false,
      mobile,
      partyData: {},
      smsCode,
    },
  });
};
